package com.homedo.odin.solution.model.request.mng.useractionlog;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel(description = "用户行为日志记录")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class UserActionLogRequestBean {

    @ApiModelProperty(value = "页面位置码，如果同一业务类型有不同的入口，则需要传入不同的位置码区分，如：大牌原厂入口统计")
    private String positionCode;

    @ApiModelProperty(value = "用户标识")
    @Min(value = 0, message = "用户标识非法参数")
    private Integer userId;

    @ApiModelProperty(value = "日志文本", required = true)
    @NotNull(message = "日志文本不能为空")
    private String text;
}
